package com.example.wryproject.database;

import ohos.data.orm.Blob;
import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

@Entity(tableName = "musicData")
public class MusicData extends OrmObject {
    @PrimaryKey()
    private int musicId;

    //音频地址
    private String musicPath;

    //歌名
    private String musicTitle;

    //歌曲时长
    private int musicDuration;

    //歌手名称
    private String singer;

    //歌曲封面
    private Blob musicCover;

    public Blob getMusicCover() {
        return musicCover;
    }

    public void setMusicCover(Blob musicCover) {
        this.musicCover = musicCover;
    }

    public MusicData() {
        super();
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public int getMusicId() {
        return musicId;
    }

    public void setMusicId(int musicId) {
        this.musicId = musicId;
    }

    public String getMusicPath() {
        return musicPath;
    }

    public void setMusicPath(String musicPath) {
        this.musicPath = musicPath;
    }

    public String getMusicTitle() {
        return musicTitle;
    }

    public void setMusicTitle(String musicTitle) {
        this.musicTitle = musicTitle;
    }

    public int getMusicDuration() {
        return musicDuration;
    }

    public void setMusicDuration(int musicDuration) {
        this.musicDuration = musicDuration;
    }
}
